// nvue下hover-class无效
$v-button-before-top: 50% !default;
$v-button-before-left: 50% !default;
$v-button-before-width: 100% !default;
$v-button-before-height: 100% !default;
$v-button-before-transform: translate(-50%, -50%) !default;
$v-button-before-opacity: 0 !default;
$v-button-before-background-color: #000 !default;
$v-button-before-border-color: #000 !default;
$v-button-active-before-opacity: 0.15 !default;
$v-button-icon-margin-left: 4px !default;
$v-button-plain-v-button-info-color: $v-info;
$v-button-plain-v-button-success-color: $v-success;
$v-button-plain-v-button-error-color: $v-error;
$v-button-plain-v-button-warning-color: $v-error;

.v-button {
	width: 100%;

	&__text {
		white-space: nowrap;
		line-height: 1;
	}

	&:before {
		position: absolute;
		top: $v-button-before-top;
		left: $v-button-before-left;
		width: $v-button-before-width;
		height: $v-button-before-height;
		border: inherit;
		border-radius: inherit;
		transform: $v-button-before-transform;
		opacity: $v-button-before-opacity;
		content: " ";
		background-color: $v-button-before-background-color;
		border-color: $v-button-before-border-color;
	}

	&--active {
		&:before {
			opacity: 0.15;
		}
	}

	&__icon + &__text:not(:empty),
	&__loading-text {
		margin-left: $v-button-icon-margin-left;
	}

	&--plain {
		&.v-button--primary {
			color: $v-primary;
		}
	}

	&--plain {
		&.v-button--info {
			color: $v-button-plain-v-button-info-color;
		}
	}

	&--plain {
		&.v-button--success {
			color: $v-button-plain-v-button-success-color;
		}
	}

	&--plain {
		&.v-button--error {
			color: $v-button-plain-v-button-error-color;
		}
	}

	&--plain {
		&.v-button--warning {
			color: $v-button-plain-v-button-warning-color;
		}
	}
}
